<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>菜单添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" />
  <style type="text/css">
    .site-doc-icon li{
      display: inline-block;
      vertical-align: middle;
      width: 127px;
      line-height: 25px;
      padding: 20px 0;
      margin-right: -1px;
      margin-bottom: -1px;
      border: 1px solid #e2e2e2;
      font-size: 14px;
      text-align: center;
      color: #666;
      transition: all .3s;
      -webkit-transition: all .3s;
    }
  </style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
  <input type="hidden" id="flag" class="flag" name="flag" value="${baseUser.userid}" />
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">登录名</label>
    <div class="layui-input-block">
      <input type="text"  class="layui-input userid" <#if baseUser.userid?? >readonly</#if> id="userid" name="userid" value="${baseUser.userid}" placeholder="请输入登录名" lay-verify="required">
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">头像</label>
    <div class="layui-input-block">
      <div class="famous-upload-pic">
        <img  <#if baseUser.headlogo?if_exists  >src="${baseUser.headlogo}"<#else>src="${s.base}/image/head_defalut.png"</#if> class="upload-avatar" id="upload-avatar"/>
        <input type="file" name="myfiles" class="upload" id="myFile" onchange="ajaxFileUploads('myFile','headLogo','upload-avatar')">
        <input type="hidden" class="headLogo" id="headLogo" <#if baseUser.headlogo?if_exists  > value="${baseUser.headlogo}"  <#else> value="/image/head_defalut.png" </#if> />
      </div>
    </div>
  </div>
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
      <input type="password" class="layui-input password"id="password" name="password" value="${baseUser.userpassword}" placeholder="请输入密码" maxlength="20" lay-verify="required" placeholder="请输入菜单连接">
    </div>
  </div>
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">组织</label>
    <div class="layui-input-block">
      <select name="departid" class="departid" lay-verify="required" lay-filter="departid">
        <#list baseDepartsList as baseDepart>
          <option <#if baseUser.departid == baseDepart.departid >selected</#if> value="${baseDepart.departid}">${baseDepart.departname}</option>
        </#list>
      </select>
    </div>
  </div>
  <div class="layui-form-item layui-row layui-col-xs12">
    <div class="layui-input-block">
      <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btnSubmit">确定</button>
      <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary closeLay">取消</button>
    </div>
  </div>
</form>
<ul class="site-doc-icon icons layui-row">
</ul>

<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/page/baseUserUpdateOrSave.js"></script>
<script src="${s.base}/base/js/jquery-3.2.0.min.js"></script>
<script type="text/javascript" src="${s.base}/base/js/ajaxfileupload.js"></script>
</body>
</html>